Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 2 - Core Printing Features / Core Printing Features Reference
Functions / Handling Errors


GXSetJobError

You can use the GXSetJobError function to store an error in the provided job object.

void GXSetJobError (gxJob aJob, OSErr anError);
aJob
A reference to the job object in which to store the error.
anError
The error to store.
DESCRIPTION
The GXSetJobError function stores an error with a particular job object. This function is useful when you want to abort or cancel spooling.

Most applications do not need to use this function because QuickDraw GX sets the error for you. You might want to use it, however, to artificially raise an error condition.

SPECIAL CONSIDERATIONS
An existing error is replaced when you call the GXSetJobError function. If you wish to save a previous error, you must call the GXGetJobError function to obtain an error prior to calling the GXSetJobError function.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help